//
//  AppDelegate.swift
//  SinaWeibo
//
//  Created by celeste on 16/5/10.
//  Copyright © 2016年 celeste. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        setupAppearance()
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        
        window?.backgroundColor = UIColor.whiteColor()
        window?.rootViewController = MainViewController()
        window?.makeKeyAndVisible()
        return true
    }
}

// MARK : - 设置应用程序
extension AppDelegate {


    ///设置外观
    private func setupAppearance() {
    
        UINavigationBar.appearance().tintColor = LDAppearanceTintColor
        
        UITabBar.appearance().tintColor = LDAppearanceTintColor
        
        UINavigationBar.appearance().titleTextAttributes = [NSFontAttributeName: UIFont.systemFontOfSize(16)]
    
    }
 }